<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!--引用CW标签  -->
<%@ taglib uri="/WEB-INF/taglib/cw" prefix="CW"%>
<!--引用struts标签  -->
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
	<title></title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath%>css/en/edit.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="<%=basePath%>js/commons/common_list.js"></script>
	<script type="text/javascript" src="<%=basePath%>js/commons/teb.js"></script>
</head>
<body>
	<s:if test="%{shopExamine != null}">
		<div class="examineTitle">
			申请时间：<s:date name="shopExamine.create_time" format="yyyy/MM/dd HH:mm:ss" />，您的申请正在审核，请耐心等待!
		</div>
	</s:if>
	<div class="writetblbox">
		<ul class="easytabs"> 
		<li><a name="easytab" class="easytab_active" onclick="tabSwitch2(this,'easytab_content_',0);">基础信息</a></li> 
		<li><a name="easytab" onclick="tabSwitch2(this,'easytab_content_',1);">图片详情</a></li> 
		<li><a name="easytab" onclick="tabSwitch2(this,'easytab_content_',2);">提现账户</a></li>
		<s:if test="%{shopExamine == null}">
			<li><a name="easytab" onclick="tabSwitch2(this,'easytab_content_',3);">推广信息</a></li>
		</s:if>
		</ul>
		<div id="easytab_content_0" class="easytab_content"> 
			<s:if test="%{shopExamine == null}">
				<div style="text-align:right;width:100%">
					<!-- 有申请记录且未审核时显示此项 -->
					<s:if test="%{shopInfo.examine_info==0}">
						<input class="okbtn" type="button" value="申请修改" onclick="_modify('<%=basePath%>/shop/gotoModify.action')"> 
					</s:if>
					<!-- 显示最近一条申请记录，无申请记录不显示 -->
					<input class="okbtn" type="button" value="查看申请" onclick="_detail('<%=basePath%>/shop/gotoExamineInfo.action')"> 
				</div>
			</s:if>
			<table class="writetbl">
				<tr>
					<th style="width: 25%">名称：</th>
					<td colspan="2"><s:property value="shopInfo.s_name" /></td>
					<td style="width: 25%;text-align:center;" rowspan="3">		
						<img style="width:100px;height:100px;" alt='' 
						src="<%=path%>/upload/getPriviewInpByPath.action?pathType=1&path=<s:property value="shopInfo.img_view"/>" >
					</td>
				</tr>
				<tr>
					<th>联系方式：</th>
					<td colspan="2"><s:property value="shopInfo.contact" /></td>
				</tr>
				<tr>
					<th>地址名称：</th>
					<td colspan="2"><s:property value="shopInfo.position" /></td>
				</tr>
				<tr>
					<th>经度：</th>
					<td style="width: 25%"><s:property value="shopInfo.longitude" /></td>
					<th style="width: 25%">纬度：</th>
					<td style="width: 25%"><s:property value="shopInfo.latitude" /></td>
				</tr>
				<tr>
					<th>商户类型：</th>
					<td colspan="3"><s:property value="shopInfo.stype" /></td>
				</tr>
				<tr>
					<th>备注：</th>
					<td colspan="3"><s:property value="shopInfo.introduction" /></td>
				</tr>
				<tr>
				<th>状态：
					<td colspan="3">
						<s:if test="%{shopInfo.status == 1}">启用</s:if>
						<s:if test="%{shopInfo.status == 0}">停用</s:if>
						<s:if test="%{shopInfo.status == 59}">审核中</s:if>
					</td>
				</tr>
			</table>
		</div> 
		<div id="easytab_content_1" class="easytab_content" style="display:none;">
			<s:if test="%{shopExamine == null}">
				<div style="text-align:right;width:100%;margin-bottom:15px;">
					<s:if test="%{shopInfo.examine_img==0}">
						<input class="okbtn" type="button" value="申请修改" onclick="_modify('<%=basePath%>/shop/gotoModifyShowImg.action')"> 
					</s:if>
					<input class="okbtn" type="button" value="查看申请" onclick="_detail('<%=basePath%>/shop/gotoExamineImg.action')"> 
				</div>
			</s:if>
			<s:if test="shopImgList.size()>0">
		    	<s:iterator value="shopImgList" var="shopImgList" status="status"> 
					<img id="img<s:property value="id"/>" style="width:100%" 
					src="<%=path%>/upload/getPriviewInpByPath.action?pathType=1&path=<s:property value="img_view"/>" />
				</s:iterator>
			</s:if>
		</div> 
		<div id="easytab_content_2" class="easytab_content" style="display:none;">
			<s:if test="%{shopExamine == null}">
				<div style="text-align:right;width:100%">
					<s:if test="%{shopInfo.examine_data==0}">
						<input class="okbtn" type="button" value="申请修改" onclick="_modify('<%=basePath%>/shop/gotoModifyAplay.action')"> 
					</s:if>
					<input class="okbtn" type="button" value="查看申请" onclick="_detail('<%=basePath%>/shop/gotoExamineAplay.action')"> 
				</div>
			</s:if>
			<table class="writetbl">
				<tr>
					<td colspan="2" style="font-weight: 600;">银联信息</td>
				</tr>
				<tr>
					<th style="width:30%">银行：</th>
					<td><s:property value="shopData.bank_name" /></td>
				</tr>
				<tr>
					<th>用户名：</th>
					<td><s:property value="shopData.bank_user" /></td>
				</tr>
				<tr>
					<th>银行账号：</th>
					<td><s:property value="shopData.bank_account" /></td>
				</tr>
			</table>
		</div>
		<s:if test="%{shopExamine == null}">
			<div id="easytab_content_3" class="easytab_content" style="display:none;">
				<table class="writetbl">
					<tr>
						<td style="width:50%">
						<div style="width:100%;line-height:16px;font-size:14px;paddint-top:10px;padding-bottom:10px;">
							邀请其他用户加入店铺，一起管理店铺!其他注册用户，填写以下邀请码，即可成为商铺管理者，拥有普通管理员权限。
						</div>
						<div style="width:100%;line-height:25px;font-size:18px;">
							邀请码：<s:property value="shopInfo.invitation" />
						</div>
						</td>
						<td>
							<div style="width:100%;line-height:16px;font-size:14px;paddint-top:10px;padding-bottom:10px;">
								客户扫码支付，二维码：
							</div>
							<div style="width:100%;text-align:center;">
								<img src="<%=path%>/upload/getPriviewInpByPath.action?pathType=1&path=<s:property value="shopData.qr_code" />" style="widht:80%">
							</div>
						</td>
					</tr>
				</table>
			</div>
		</s:if>
	</div> 
</body>
</html>
